class UserService {
    /*@ngInject*/
    constructor($http) {
        this.$http = $http;
    }

    getUsers() {
        return this.$http.get('user/');
    }

    addUser(user) {
        return this.$http({
            method: 'post',
            url: 'user/save',
            data: user
        });
    }

    remove(ids) {
        return this.$http.post('user/remove', {
            ids: ids
        })
    }
}

export default UserService;